<?php
/*
*	Kleophatra - Open Source Content Management System
*	------------------------------------------------------------------------
*	Copyright (C) 2007-2009, Sergio Milardovich <smilardovich@yahoo.com.ar>
*	This program is Free Software.
*
*	@package	Kleophatra
*	@subpackage	/lib
*	@license	http://www.gnu.org/copyleft/gpl.html GNU/GPL License 2.0
*	@author		Sergio Milardovich <smilardovich@yahoo.com.ar>
*	@link		http://www.kleophatra.org
*/
class kleofiles extends kleotemplate{
	function load_dir($dir){
		$dir = opendir($dir);
		while ($d = readdir($dir)){
  			if(!is_file($d) && $d !== '..' && $d !== '.'){
				$dirs[] = $d;
			}
		}
		closedir($dir);
		if(is_array($dirs)){
			return $dirs;
		} else {
			return false;
		}
	}
}
?>